package com.starter.zspringbootautoconfigure;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Action {

	private ConfigProperties configProperties;

	public Action(ConfigProperties configProperties) {
		this.configProperties = configProperties;
	}

	@GetMapping(value = "/")
	public String hello() {
		return configProperties.getInfo()+"   hello";
	}

}
